using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class SeriesGroupingType
    {

        private DynamicSeriesType _DynamicSeries;
        private StaticSeriesType _StaticSeries;

        public DynamicSeriesType DynamicSeries
        {
            get
            {
                if (_DynamicSeries == null)
                    _DynamicSeries = new DynamicSeriesType();
                return _DynamicSeries;
            }
            set
            {
                _DynamicSeries = value;
            }
        }

        public StaticSeriesType StaticSeries
        {
            get
            {
                if (_StaticSeries == null)
                    _StaticSeries = new StaticSeriesType();
                return _StaticSeries;
            }
            set
            {
                _StaticSeries = value;
            }
        }

        public SeriesGroupingType()
        {
        }

        public SeriesGroupingType Write()
        {
            SeriesGroupingType seriesGroupingType = new SeriesGroupingType();
            ArrayList arrayList = new ArrayList();
            if (_DynamicSeries != null)
                arrayList.Add(_DynamicSeries.Write());
            if (_StaticSeries != null)
                arrayList.Add(_StaticSeries.Write());
            seriesGroupingType.Items = arrayList.ToArray();
            arrayList = null;
            return seriesGroupingType;
        }

    } // class SeriesGroupingType

}

